/* --- 1. GLOBAL & RESET --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body { 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-buffer {
    height: 120px;
    width: 100%;
}

/* --- 2. NAVIGATION & HEADER --- */
.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    z-index: 100;
    box-sizing: border-box;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
}

.site-subtitle {
    margin: 5px 0 0 0; 
    font-size: 10px;    
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
}

.top-nav {
    display: flex;
    gap: 15px;
}

.top-nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .overlay-header { flex-direction: column; gap: 15px; padding: 15px; align-items: center; }
    .logo-wrapper { align-items: center; text-align: center; }
    .top-nav { gap: 10px; justify-content: center; width: 100%; }
    .page-buffer { height: 100px; }
}

/* --- 3. FILM DETAIL LAYOUT --- */
.film-detail-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.poster-column img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.movie-info h2 {
    font-size: 32px;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.movie-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--movie-info);
    margin-bottom: 20px;
}

hr {
    border: 0;
    border-top: 1px solid var(--script-hover);
    margin: 20px 0;
}

@media (min-width: 768px) {
    .film-detail-container {
        flex-direction: row;
        align-items: flex-start;
        padding: 0 5%;
        gap: 100px;
        max-width: 3000px;
    }

    .poster-column {
        flex: 0 0 50%;
        max-width: 1000px;
    }

    .content-column {
        flex: 1;
    }
}

/* --- 4. STILLS GRID SECTION --- */
.stills-grid-container {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 20px;
    text-align: center;
}

.section-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--section-label);
    margin-bottom: 40px;
}

.stills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.stills-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.stills-grid img:hover {
    opacity: 0.8;
}


.small-poster {
    width: 200px;
    height: auto;
    border-radius: 3px;
    margin: 0 auto 20px;
    display: block;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 auto 20px;
    max-width: 60%;
}

.poster-grid .small-poster {
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .poster-grid {
        display: none;
    }
}
@media (min-width: 768px) {
    .film-detail-container {
        align-items: center; /
    }
}

@media (max-width: 480px) {
    .stills-grid { grid-template-columns: 1fr; }
}

/* -- Animation -- */
.reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-init {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.header-divider {
    width: 200px;
    height: 1px;
    background-color: var(--text-color);
    opacity: 0.3;
    align-self: center;
}